package com.rshy.cloud.bamboo.bus.manager.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.rshy.cloud.bamboo.bus.manager.consumer.TestConsumer;
import com.rshy.cloud.bamboo.comm.feignei.cache.entiy.TestEntiy;

@RestController
@RequestMapping("/manager")
public class TestController {

	@Autowired
	private TestConsumer testConsumer;

	@RequestMapping(value = "/test", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public TestEntiy test() {
		TestEntiy testEntiy = testConsumer.test("lili");

		return testEntiy;
	}
}
